Integrand size = 24, antiderivative size = 112 \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=-\frac {2 \left (c d^2+a e^2\right )}{e^2 (e f-d g) \sqrt {d+e x}}+\frac {2 c \sqrt {d+e x}}{e^2 g}-\frac {2 \left (c f^2+a g^2\right ) \arctan \left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e f-d g}}\right )}{g^{3/2} (e f-d g)^{3/2}} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {912, 1275, 211} \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=-\frac {2 \left (a g^2+c f^2\right ) \arctan \left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e f-d g}}\right )}{g^{3/2} (e f-d g)^{3/2}}-\frac {2 \left (a e^2+c d^2\right )}{e^2 \sqrt {d+e x} (e f-d g)}+\frac {2 c \sqrt {d+e x}}{e^2 g} \]
[In]
[Out]
Rule 211
Rule 912
Rule 1275
Rubi steps \begin{align*} \text {integral}& = \frac {2 \text {Subst}\left (\int \frac {\frac {c d^2+a e^2}{e^2}-\frac {2 c d x^2}{e^2}+\frac {c x^4}{e^2}}{x^2 \left (\frac {e f-d g}{e}+\frac {g x^2}{e}\right )} \, dx,x,\sqrt {d+e x}\right )}{e} \\ & = \frac {2 \text {Subst}\left (\int \left (\frac {c}{e g}+\frac {c d^2+a e^2}{e (e f-d g) x^2}-\frac {e \left (c f^2+a g^2\right )}{g (-e f+d g) \left (-e f+d g-g x^2\right )}\right ) \, dx,x,\sqrt {d+e x}\right )}{e} \\ & = -\frac {2 \left (c d^2+a e^2\right )}{e^2 (e f-d g) \sqrt {d+e x}}+\frac {2 c \sqrt {d+e x}}{e^2 g}+\frac {\left (2 \left (c f^2+a g^2\right )\right ) \text {Subst}\left (\int \frac {1}{-e f+d g-g x^2} \, dx,x,\sqrt {d+e x}\right )}{g (e f-d g)} \\ & = -\frac {2 \left (c d^2+a e^2\right )}{e^2 (e f-d g) \sqrt {d+e x}}+\frac {2 c \sqrt {d+e x}}{e^2 g}-\frac {2 \left (c f^2+a g^2\right ) \tan ^{-1}\left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e f-d g}}\right )}{g^{3/2} (e f-d g)^{3/2}} \\ \end{align*}
Time = 0.22 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.05 \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=-\frac {2 \left (c d^2 g+a e^2 g-c e f (d+e x)+c d g (d+e x)\right )}{e^2 g (e f-d g) \sqrt {d+e x}}-\frac {2 \left (c f^2+a g^2\right ) \arctan \left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e f-d g}}\right )}{g^{3/2} (e f-d g)^{3/2}} \]
[In]
[Out]
Time = 0.47 (sec) , antiderivative size = 111, normalized size of antiderivative = 0.99
method | result | size |
pseudoelliptic | \(\frac {\frac {2 c \sqrt {e x +d}}{g}-\frac {2 e^{2} \left (a \,g^{2}+c \,f^{2}\right ) \operatorname {arctanh}\left (\frac {g \sqrt {e x +d}}{\sqrt {\left (d g -e f \right ) g}}\right )}{\left (d g -e f \right ) g \sqrt {\left (d g -e f \right ) g}}+\frac {2 \left (e^{2} a +c \,d^{2}\right )}{\left (d g -e f \right ) \sqrt {e x +d}}}{e^{2}}\) | \(111\) |
derivativedivides | \(\frac {\frac {2 c \sqrt {e x +d}}{g}-\frac {2 e^{2} \left (a \,g^{2}+c \,f^{2}\right ) \operatorname {arctanh}\left (\frac {g \sqrt {e x +d}}{\sqrt {\left (d g -e f \right ) g}}\right )}{\left (d g -e f \right ) g \sqrt {\left (d g -e f \right ) g}}-\frac {2 \left (-e^{2} a -c \,d^{2}\right )}{\left (d g -e f \right ) \sqrt {e x +d}}}{e^{2}}\) | \(114\) |
default | \(\frac {\frac {2 c \sqrt {e x +d}}{g}-\frac {2 e^{2} \left (a \,g^{2}+c \,f^{2}\right ) \operatorname {arctanh}\left (\frac {g \sqrt {e x +d}}{\sqrt {\left (d g -e f \right ) g}}\right )}{\left (d g -e f \right ) g \sqrt {\left (d g -e f \right ) g}}-\frac {2 \left (-e^{2} a -c \,d^{2}\right )}{\left (d g -e f \right ) \sqrt {e x +d}}}{e^{2}}\) | \(114\) |
risch | \(\frac {2 c \sqrt {e x +d}}{e^{2} g}-\frac {2 \left (\frac {e^{2} \left (a \,g^{2}+c \,f^{2}\right ) \operatorname {arctanh}\left (\frac {g \sqrt {e x +d}}{\sqrt {\left (d g -e f \right ) g}}\right )}{\left (d g -e f \right ) \sqrt {\left (d g -e f \right ) g}}-\frac {\left (e^{2} a +c \,d^{2}\right ) g}{\left (d g -e f \right ) \sqrt {e x +d}}\right )}{g \,e^{2}}\) | \(117\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 243 vs. \(2 (98) = 196\).
Time = 0.30 (sec) , antiderivative size = 499, normalized size of antiderivative = 4.46 \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=\left [\frac {{\left (c d e^{2} f^{2} + a d e^{2} g^{2} + {\left (c e^{3} f^{2} + a e^{3} g^{2}\right )} x\right )} \sqrt {-e f g + d g^{2}} \log \left (\frac {e g x - e f + 2 \, d g - 2 \, \sqrt {-e f g + d g^{2}} \sqrt {e x + d}}{g x + f}\right ) + 2 \, {\left (c d e^{2} f^{2} g - {\left (3 \, c d^{2} e + a e^{3}\right )} f g^{2} + {\left (2 \, c d^{3} + a d e^{2}\right )} g^{3} + {\left (c e^{3} f^{2} g - 2 \, c d e^{2} f g^{2} + c d^{2} e g^{3}\right )} x\right )} \sqrt {e x + d}}{d e^{4} f^{2} g^{2} - 2 \, d^{2} e^{3} f g^{3} + d^{3} e^{2} g^{4} + {\left (e^{5} f^{2} g^{2} - 2 \, d e^{4} f g^{3} + d^{2} e^{3} g^{4}\right )} x}, \frac {2 \, {\left ({\left (c d e^{2} f^{2} + a d e^{2} g^{2} + {\left (c e^{3} f^{2} + a e^{3} g^{2}\right )} x\right )} \sqrt {e f g - d g^{2}} \arctan \left (\frac {\sqrt {e f g - d g^{2}} \sqrt {e x + d}}{e g x + d g}\right ) + {\left (c d e^{2} f^{2} g - {\left (3 \, c d^{2} e + a e^{3}\right )} f g^{2} + {\left (2 \, c d^{3} + a d e^{2}\right )} g^{3} + {\left (c e^{3} f^{2} g - 2 \, c d e^{2} f g^{2} + c d^{2} e g^{3}\right )} x\right )} \sqrt {e x + d}\right )}}{d e^{4} f^{2} g^{2} - 2 \, d^{2} e^{3} f g^{3} + d^{3} e^{2} g^{4} + {\left (e^{5} f^{2} g^{2} - 2 \, d e^{4} f g^{3} + d^{2} e^{3} g^{4}\right )} x}\right ] \]
[In]
[Out]
Time = 5.87 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.38 \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=\begin {cases} \frac {2 \left (\frac {c \sqrt {d + e x}}{e g} + \frac {e \left (a g^{2} + c f^{2}\right ) \operatorname {atan}{\left (\frac {\sqrt {d + e x}}{\sqrt {- \frac {d g - e f}{g}}} \right )}}{g^{2} \sqrt {- \frac {d g - e f}{g}} \left (d g - e f\right )} + \frac {a e^{2} + c d^{2}}{e \sqrt {d + e x} \left (d g - e f\right )}\right )}{e} & \text {for}\: e \neq 0 \\\frac {- \frac {c f x}{g^{2}} + \frac {c x^{2}}{2 g} + \frac {\left (a g^{2} + c f^{2}\right ) \left (\begin {cases} \frac {x}{f} & \text {for}\: g = 0 \\\frac {\log {\left (f + g x \right )}}{g} & \text {otherwise} \end {cases}\right )}{g^{2}}}{d^{\frac {3}{2}}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Exception generated. \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 101, normalized size of antiderivative = 0.90 \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=-\frac {2 \, {\left (c f^{2} + a g^{2}\right )} \arctan \left (\frac {\sqrt {e x + d} g}{\sqrt {e f g - d g^{2}}}\right )}{{\left (e f g - d g^{2}\right )}^{\frac {3}{2}}} - \frac {2 \, {\left (c d^{2} + a e^{2}\right )}}{{\left (e^{3} f - d e^{2} g\right )} \sqrt {e x + d}} + \frac {2 \, \sqrt {e x + d} c}{e^{2} g} \]
[In]
[Out]
Time = 0.25 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.11 \[ \int \frac {a+c x^2}{(d+e x)^{3/2} (f+g x)} \, dx=\frac {2\,c\,\sqrt {d+e\,x}}{e^2\,g}+\frac {2\,\left (c\,g\,d^2+a\,g\,e^2\right )}{e^2\,g\,\left (d\,g-e\,f\right )\,\sqrt {d+e\,x}}+\frac {\mathrm {atan}\left (\frac {d\,g^{3/2}\,\sqrt {d+e\,x}\,1{}\mathrm {i}-e\,f\,\sqrt {g}\,\sqrt {d+e\,x}\,1{}\mathrm {i}}{{\left (d\,g-e\,f\right )}^{3/2}}\right )\,\left (c\,f^2+a\,g^2\right )\,2{}\mathrm {i}}{g^{3/2}\,{\left (d\,g-e\,f\right )}^{3/2}} \]
[In]
[Out]